//
//  UITextField+someMethods.m
//  BKJ
//
//  Created by 吴涛 on 15/12/28.
//  Copyright © 2015年 贝壳家iOS. All rights reserved.
//

#import "UITextField+someMethods.h"

@implementation UITextField (someMethods)
+ (instancetype)textFieldWithFont:(CGFloat)font
                    textAlignment:(NSTextAlignment)textAlignment
                      Placeholder:(NSString *)placeholder{
  
  UITextField *textF = [UITextField new];
  if (placeholder != nil) {
    textF.placeholder = placeholder;
  }
  
  if (font != 0) {
    textF.font = [UIFont systemFontOfSize:font];
  }
  
  if (textAlignment) {
    textF.textAlignment = textAlignment;
  }
  return textF;
}
@end
